package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class SubscribeButton implements Sequenceable, Serializable {

    @SerializedName("subscribeButtonRenderer")
    private SubscribeButtonRenderer subscribeButtonRenderer;

    public static final Sequenceable.Producer<SubscribeButton> CREATOR = new Producer<SubscribeButton>() {
        @Override
        public SubscribeButton createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            SubscribeButton subscribeButton = new SubscribeButton();
            subscribeButton.unmarshalling(parcel);
            return subscribeButton;
        }
    };


  
    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeSequenceable(this.subscribeButtonRenderer);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        parcel.readSequenceable(this.subscribeButtonRenderer);
        return true;
    }

    @Override
    public String toString() {
        return "SubscribeButton{" +
                "subscribeButtonRenderer=" + subscribeButtonRenderer +
                '}';
    }

    public SubscribeButtonRenderer getSubscribeButtonRenderer() {
        return subscribeButtonRenderer;
    }

    public void setSubscribeButtonRenderer(SubscribeButtonRenderer subscribeButtonRenderer) {
        this.subscribeButtonRenderer = subscribeButtonRenderer;
    }
}
